//
//  SingleLineLabel.m
//  18Birdies
//
//  Created by poleness on 2017/9/15.
//  Copyright © 2017年 Lc. All rights reserved.
//

#import "SingleLineLabel.h"
#import "LcFoundation.h"

@implementation SingleLineLabel

- (void)awakeFromNib {
  [super awakeFromNib];
  self.leftLabel.numberOfLines = 0;
  self.rightLabel.numberOfLines = 0;
  self.leftLabel.preferredMaxLayoutWidth = LcUIUtility.screenWidth / 2 - 10;
  self.rightLabel.preferredMaxLayoutWidth = LcUIUtility.screenWidth / 2 - 25;
}

- (void)layoutIfNeeded {
  [super layoutIfNeeded];
  [self.leftLabel layoutIfNeeded];
  [self.rightLabel layoutIfNeeded];
}

@end
